#!/bin/bash
HostName="$1"
HostName2=`echo "$1"|awk -F '@' '{print $1}'`

/usr/sbin/lctl ping $HostName2 #> /dev/null 2>&1
if [ $? -eq 0 ];then
    echo "lustre server $1 lctl ping ok"
    exit 0
else
    echo "lustre server $1 lctl ping error"
    exit 2
fi


